from rest_framework import serializers
from .models import BorrowLog


class BorrowLogSerializer(serializers.ModelSerializer):

    class Meta:
        model = BorrowLog
        fields = '__all__'


class BorrowRateSerializer(serializers.Serializer):
    category = serializers.CharField()
    use_rate = serializers.FloatField()

    class Meta:
        fields = '__all__'
